from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.

from ..models  import Order

def order_index(request):
    # 查出所有订单信息

    order = Order.objects.order_by('addtime')
    data = {'info':order}
    return render(request,'admin/order/index.html',data)

